package service

import (
	"context"
	postApi "mldong/api/post"
	"reflect"
)

type IPostService interface {
	/**
	* 添加岗位
	 */
	Save(ctx context.Context, req *postApi.SaveReq) (res bool, err error)
	/**
	* 修改岗位
	 */
	Update(ctx context.Context, req *postApi.UpdateReq) (res bool, err error)
	/**
	* 删除岗位
	 */
	Remove(ctx context.Context, ids []string) (res bool, err error)
	/**
	* 岗位详情
	 */
	Detail(ctx context.Context, id string) (res postApi.PostVO, err error)
	/**
	* 岗位分页查询
	 */
	Page(ctx context.Context, req *postApi.PageReq) (res postApi.PostPageVO, err error)
}

var PostServiceType = reflect.TypeOf((*IPostService)(nil)).Elem()
